package com.msb.mall.product.feign;

import com.msb.common.vo.CommonResult;
import com.msb.mall.product.feign.fallback.SeckillFeignServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(
        name = "mall-seckill",
        path = "/mall-seckill",
        fallback = SeckillFeignServiceFallback.class
)
public interface SeckillFeignService {

    @GetMapping("/seckill/seckillSessionBySkuId")
    CommonResult getSeckillSessionBySkuId(@RequestParam("skuId") Long skuId);
}
